package com.hafiery.sdk.bluetooth.api;
import com.hafiery.sdk.bluetooth.IBlueToothAction;

public class BlueToothSDK {
    private static IBlueToothAction mClient;
    private static IBlueToothApi mApi;
    private BlueToothSDK(){}

    public static void init(IBlueToothAction mClient){
        BlueToothSDK.mClient=mClient;
        BlueToothSDK.mApi=new BlueToothApiImp(mClient);
    }
    public static BlueToothSDK instance(){
        return SingleTonHolder.instance;
    }

    private static class SingleTonHolder {
        private static final BlueToothSDK instance=new BlueToothSDK();
    }

    public IBlueToothAction getBlueToothClient() {
        return mClient;
    }

    public IBlueToothApi getBlueToothApi() {
        return mApi;
    }
}
